﻿/**********************************************
* 国家地区代码
***********************************************/

var country = Array();
country[0] = "请选择";
country[1] = "美国+1,1";
country[2] = "澳大利亚+61,61";
country[3] = "加拿大+1,1";
country[4] = "中国+86,86";
country[5] = "日本+81,81";
country[6] = "韩国+82,82";
country[7] = "法国+33,33";
country[8] = "德国+49,49";
country[9] = "意大利+39,39";
country[10] = "新西兰+64,64";
country[11] = "荷兰+31,31";
country[12] = "香港+852,852";
country[13] = "澳门+853,853";
country[14] = "新加坡+65,65";
country[15] = "泰国+66,66";
country[16] = "安哥拉+244,244";
country[17] = "阿富汗+93,93";
country[18] = "阿尔巴尼亚+355,355";
country[19] = "阿尔及利亚+213,213";
country[20] = "安道尔共和国+376,376";
country[21] = "安圭拉岛+1264,1264";
country[22] = "安提瓜和巴布达+1268,1268";
country[23] = "阿根廷+54,54";
country[24] = "亚美尼亚+374,374";
country[25] = "阿森松+247,247";
country[26] = "奥地利+43,43";
country[27] = "阿塞拜疆+994,994";
country[28] = "巴哈马+1242,1242";
country[29] = "巴林+973,973";
country[30] = "孟加拉国+880,880";
country[31] = "巴巴多斯+1246,1246";
country[32] = "白俄罗斯+375,375";
country[33] = "比利时+32,32";
country[34] = "伯利兹+501,501";
country[35] = "贝宁+229,229";
country[36] = "百慕大群岛+1441,1441";
country[37] = "玻利维亚+591,591";
country[38] = "博茨瓦纳+267,267";
country[39] = "巴西+55,55";
country[40] = "文莱+673,673";
country[41] = "保加利亚+359,359";
country[42] = "布基纳法索+226,226";
country[43] = "缅甸+95,95";
country[44] = "布隆迪+257,257";
country[45] = "喀麦隆+237,237";
country[46] = "开曼群岛+1345,1345";
country[47] = "中非共和国+236,236";
country[48] = "乍得+235,235";
country[49] = "智利+56,56";
country[50] = "哥伦比亚+57,57";
country[51] = "刚果+242,242";
country[52] = "库克群岛+682,682";
country[53] = "哥斯达黎加+506,506";
country[54] = "古巴+53,53";
country[55] = "塞浦路斯+357,357";
country[56] = "捷克+420,420";
country[57] = "丹麦+45,45";
country[58] = "吉布提+253,253";
country[59] = "多米尼加共和国+1890,1890";
country[60] = "厄瓜多尔+593,593";
country[61] = "埃及+20,20";
country[62] = "萨尔瓦多+503,503";
country[63] = "爱沙尼亚+372,372";
country[64] = "埃塞俄比亚+251,251";
country[65] = "斐济+679,679";
country[66] = "芬兰+358,358";
country[67] = "法属圭亚那+594,594";
country[68] = "加蓬+241,241";
country[69] = "冈比亚+220,220";
country[70] = "格鲁吉亚+995,995";
country[71] = "加纳+233,233";
country[72] = "直布罗陀+350,350";
country[73] = "希腊+30,30";
country[74] = "格林纳达+1809,1809";
country[75] = "关岛+1671,1671";
country[76] = "危地马拉+502,502";
country[77] = "几内亚+224,224";
country[78] = "圭亚那+592,592";
country[79] = "海地+509,509";
country[80] = "洪都拉斯+504,504";
country[81] = "匈牙利+36,36";
country[82] = "冰岛+354,354";
country[83] = "印度+91,91";
country[44] = "印度尼西亚+62,62";
country[85] = "伊朗+98,98";
country[86] = "伊拉克+964,964";
country[87] = "爱尔兰+353,353";
country[88] = "以色列+972,972";
country[89] = "科特迪瓦+225,225";
country[90] = "牙买加+1876,1876";
country[91] = "约旦+962,962";
country[92] = "柬埔寨+855,855";
country[93] = "哈萨克斯坦+327,327";
country[94] = "肯尼亚+254,254";
country[95] = "科威特+965,965";
country[96] = "吉尔吉斯坦+331,331";
country[97] = "老挝+856,856";
country[98] = "拉脱维亚+371,371";
country[99] = "黎巴嫩+961,961";
country[100] = "莱索托+266,266";
country[101] = "利比里亚+231,231";
country[102] = "利比亚+218,218";
country[103] = "列支敦士登+423,423";
country[104] = "立陶宛+370,370";
country[105] = "卢森堡+352,352";
country[106] = "马达加斯加+261,261";
country[107] = "马拉维+265,265";
country[108] = "马来西亚+60,60";
country[109] = "马尔代夫+960,960";
country[110] = "马里+223,223";
country[111] = "马耳他+356,356";

country[112] = "马里亚那群岛+1670,1670";
country[113] = "马提尼克+596,596";
country[114] = "毛里求斯+230,230";
country[115] = "墨西哥+52,52";
country[116] = "摩尔多瓦+373,373";
country[117] = "摩纳哥+377,377";
country[118] = "蒙古+976,976";
country[119] = "蒙特塞拉特岛+1664,1664";
country[120] = "摩洛哥+212,212";
country[121] = "莫桑比克+258,258";
country[122] = "纳米比亚+264,264";
country[123] = "瑙鲁+674,674";
country[124] = "尼泊尔+977,977";
country[125] = "荷属安的列斯+599,599";
country[126] = "尼加拉瓜+505,505";
country[127] = "尼日尔+227,227";
country[128] = "尼日利亚+234,234";
country[129] = "朝鲜+850,850";
country[130] = "挪威+47,47";
country[131] = "阿曼+968,968";
country[132] = "巴基斯坦+92,92";
country[133] = "巴拿马+507,507";
country[134] = "巴布亚新几内亚+675,675";
country[135] = "巴拉圭+595,595";
country[136] = "秘鲁+51,51";
country[137] = "菲律宾+63,63";
country[138] = "波兰+48,48";
country[139] = "法属玻利尼西亚+689,689";
country[140] = "葡萄牙+351,351";
country[141] = "波多黎各+1787,1787";
country[142] = "卡塔尔+974,974";
country[143] = "留尼旺+262,262";
country[144] = "罗马尼亚+40,40";
country[145] = "俄罗斯+7,7";
country[146] = "圣卢西亚+1758,1758";
country[147] = "圣文森特岛+1784,1784";
country[148] = "东萨摩亚(美)+684,684";
country[149] = "西萨摩亚+685,685";
country[150] = "圣马力诺+378,378";
country[151] = "圣多美和普林西比+239,239";
country[152] = "沙特阿拉伯+966,966";
country[153] = "塞内加尔+221,221";
country[154] = "塞舌尔+248,248";
country[155] = "塞拉利昂+232,232";
country[156] = "所罗门群岛+677,677";
country[157] = "索马里+252,252";
country[158] = "斯洛伐克+421,421";
country[159] = "斯洛文尼亚+386,386";
country[160] = "南非+27,27";
country[161] = "西班牙+34,34";
country[162] = "斯里兰卡+94,94";
country[163] = "圣卢西亚+1758,1758";
country[164] = "圣文森特+1784,1784";
country[165] = "苏丹+249,249";
country[166] = "苏里南+597,597";
country[167] = "斯威士兰+268,268";
country[168] = "瑞典+46,46";
country[169] = "瑞士+41,41";
country[170] = "叙利亚+963,963";
country[171] = "台湾省+886,886";
country[172] = "塔吉克斯坦+992,992";
country[173] = "坦桑尼亚+255,255";
country[174] = "多哥+228,228";
country[175] = "汤加+676,676";
country[176] = "特立尼达和多巴哥+1809,1809";
country[177] = "突尼斯+216,216";
country[178] = "土耳其+90,90";
country[179] = "土库曼斯坦+993,993";
country[180] = "乌干达+256,256";
country[181] = "乌克兰+380,380";
country[182] = "阿拉伯联合酋长国+971,971";
country[183] = "英国+44,44";
country[184] = "乌拉圭+598,598";
country[185] = "乌兹别克斯坦+233,233";
country[186] = "委内瑞拉+58,58";
country[187] = "越南+84,84";
country[188] = "也门+967,967";
country[189] = "南斯拉夫+381,381";
country[190] = "南非+27,27";
country[191] = "津巴布韦+263,263";
country[192] = "扎伊尔+243,243";
country[193] = "赞比亚+260,260";



function getCountryData(countryId,seleId)
{
    seleId = seleId == 0 ? 86 : seleId;    
    
    for (var i = 0; i < country.length; i++) {
        if (country[i] != null) {
            var option = new Option(country[i].split(",")[0],  country[i].split(",")[1]);
            if (option.value == "--请选择--")
                option.value = "";
            document.getElementById(countryId).options[document.getElementById(countryId).options.length] = option;           
        }
    }

    $("#" + countryId).val(seleId);

}